import 'package:flutter/material.dart';
import 'package:test1/bean/ProductInfo.dart';
import 'package:test1/pages/test/Test_Shopping_Car_List_Page.dart';

class Test_Shopping_Car_Page extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return Test_Shopping_Car_State();
  }
}

class Test_Shopping_Car_State extends State<Test_Shopping_Car_Page> {

  List<ProductInfo>list = [
    ProductInfo("物品1"),
    ProductInfo("物品2"),
    ProductInfo("物品3"),
    ProductInfo("物品4"),
  ];

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("购物车小练习"),
        ),
        body: Test_Shopping_Car_List_Page(list),
      ),
    );
  }
}